package com.WISSC.service;

import com.WISSC.bean.Occupation;
import com.WISSC.bean.OccupationImage;
import com.WISSC.bean.Student;
import com.WISSC.bean.layuiBean.ResultPage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 职业资格信息表 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface OccupationService extends IService<Occupation> {


    /**
     * @param page
     * @param limit
     * @param idNo
     * @param idNumber
     * @param regTime
     * @param city
     * @param qualifications
     * @param subject
     * @param subjectLevel
     * @param name
     * @return 查询 + 分页
     */
    ResultPage<Occupation> selectMyPage(int page, int limit, String  idNo, String idNumber, Long regTime, String city, Integer qualifications, Integer subject, Integer subjectLevel, String name,HttpSession session);

    /**
     * @param occupation
     * @return 添加
     */
    String occupationInsert(Occupation occupation,String param2);

    boolean login(Occupation occupation, OccupationImage occupationImage, HttpSession session1);


    /**
     *
     * @param occupation
     * @return 修改资格证书
     */
//    Map updateOccupationById(Occupation occupation);


    /**
     * @param idNumber
     * @param
     * @return 个人赛事 资格证书查询
     */
     Occupation list(String idNumber );
    /**
     * @param id
     * @return 回显所在职业资格的所属地区
     */
    Map getOccupationCity(Long id);

    Occupation countPerson();

    /**
     *
     * @return 获取资格证书对应的---图片
     */
    List<Occupation> getImageUrl(Map map);

    Map updateOccupation(Occupation occupation, String param2);

    int getCount(Occupation occupation,int id);

    int getOccupationCount(String idNumber, String idNo);

    List<Occupation> getImageUrl1(Map map);
}